<template>
  <iframe :src="url"></iframe>
</template>
<script setup>
  import { onMounted, ref } from 'vue'
  import { useRoute } from 'vue-router'
  const route = useRoute()
  const url = ref('https://www.baidu.com')
  onMounted(() => {
    url.value = route.query.url
  })
</script>
<style>
  iframe {
    width: 100%;
    height: 100vh;
    border: none;
  }
</style>
